package com.erp.stock.service.impl;

import com.erp.stock.dao.UserDao;
import com.erp.stock.entity.User;
import com.erp.stock.mapper.UserMapper;
import com.erp.stock.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserDao userDao;

    @Autowired
    UserMapper userMapper;

    @Override
    public List<User> findAll() {
        return userMapper.findAll();
    }

}
